|
spiisolator9 2.2.2
|
SPI Isolator 9 Click example. More...
Macros | |
| #define | MIKROBUS_POSITION_SPIISOLATOR9 MIKROBUS_1 |
| #define | DEVICE_NAME "Accel 22 Click" |
| #define | DEVICE_SPI_READ_REG 0x0B |
| #define | DEVICE_REG_ID 0x00 |
| #define | DEVICE_ID 0xAD |
Functions | |
| void | spiisolator9_get_accel22_id (spiisolator9_t *ctx) |
| SPI Isolator 9 get accel 22 id function. | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
SPI Isolator 9 Click example.
This example demonstrates the use of SPI Isolator 9 Click board by reading the device ID of the connected Accel 22 Click board.
The demo application is composed of two sections :
Initializes the driver and logger.
Reads and checks the device ID of the connected Accel 22 Click board, and displays the results on the USB UART approximately once per second.
| #define DEVICE_ID 0xAD |
| #define DEVICE_NAME "Accel 22 Click" |
| #define DEVICE_REG_ID 0x00 |
| #define DEVICE_SPI_READ_REG 0x0B |
| #define MIKROBUS_POSITION_SPIISOLATOR9 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |
| void spiisolator9_get_accel22_id | ( | spiisolator9_t * | ctx | ) |
SPI Isolator 9 get accel 22 id function.
This function reads and checks the device ID of the connected Accel 22 Click board.
| [in] | ctx | : Click context object. See spiisolator9_t object definition for detailed explanation. |